<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateScreenCustomerTemp extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        if (Schema::hasTable('screen_customer_temp')) {
            return;
        }
        Schema::create('screen_customer_temp', function (Blueprint $table) {
            $table->id();
            $table->string('customer_number')->default('')->comment('客户编号');
            $table->string('customer_name')->default('')->comment('客户名称');
            $table->string('customer_short_name')->default('')->comment('客户简称');
            $table->string('product_name')->default('')->comment('产品名称');
            $table->string('product_model')->default('')->comment('产品型号');
            $table->string('product_date')->default('')->comment('出厂日期');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('screen_customer_temp');
    }
}
